package com.yongchao.role.service;

import com.yongchao.role.bean.RoleBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface YYC_RoleService {

    Integer addRole(String name);

    Integer deleteRoleById(Integer id);

    Integer updateRoleById(@Param("id") Integer id,@Param("name") String name);

    List<RoleBean> checkRole();

    List<RoleBean> findRoleByPhone(String id);

    Integer findUserCountByRoleId(Integer id);

    Integer findRoleCountByRoleName(String name);

}
